#!/usr/bin/env python
#!coding=utf-8


import os
import sys
#from tkinter import Spinbox

class people:
    name = ""
    age = 0
    def __init__(self, _name, _age) -> None:
        self.name = _name
        self.age = _age
    def speak(self):
        print("Here is the name ={%s}, age = {%d}" %(self.name, self.age))

class student (people):
    grade = 0
    def __init__(self, _name, _age, _grade) -> None:
        super().__init__(_name, _age)
        self.grade = _grade
    def speak(self):
        super().speak()
        print("I am also in grade = {%d}" %(self.grade))

def run():
    spdict = {"a":1, "b":4, "m":7}
    print("llll")
    for each in spdict.keys():
        print(str(each) + "->" + str(spdict[each]))
    result = "name" in spdict
    print(result)
    print(spdict)
    del spdict["a"]
    print(spdict)
    tmSet = set(("mine", "name", "yours", "hello"))
    print(tmSet)
    tmSet.add("name")
    print(tmSet)
    tmSet.remove("name")
    print(tmSet)

def testClass():
    me = people("zhao ming", 9)
    me.speak()

    st = student("lijing", 15, 10)
    f = st.speak
    f()
    super(student, st).speak()  #调用父类方法
if __name__ == "__main__":
    #run()
    testClass()